package com.js.basic.api;

import com.js.basic.api.factory.RemoteBasicFallbackFactory;
import com.js.basic.api.model.CodeRules;
import com.js.basic.api.model.ExpertInfoDto;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteBasicService", value = ServiceNameConstants.BASIC_SERVICE, fallbackFactory = RemoteBasicFallbackFactory.class)
public interface RemoteBasicService {
    @GetMapping("rules/getTableCode/{tableName}")
    CodeRules getCodeByTableName(@PathVariable("tableName") String tableName);

    @PostMapping("rules/updateCodeNow")
    AjaxResult updateCodeNowByTableName(@RequestBody CodeRules codeRules);


}
